package com.yeyks.order.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author fuchangshuai
 * @date 2019/05/21 17:15
 */
@Data
public class OrderPayParam implements Serializable {
    private static final long serialVersionUID = 9067056410216936172L;

    @ApiModelProperty("openId(APP和钱包支付不用传)")
    private String openId;

    @ApiModelProperty("订单主键id")
    @NotNull(message = "订单id不能为空")
    private Integer orderId;

    @ApiModelProperty("付款类型(wxpay, alipay, xcx, gzh, wallet)")
    @NotBlank(message = "付款方式不能为空")
    private String type;

    @ApiModelProperty("支付密码(钱包支付的话该支付密码必传)")
    private String password;

    @ApiModelProperty("会员卡id(钱包支付必传)")
    private Integer cardId;

}
